export function setToken(token){
	uni.setStorageSync('token',token)
}

export function getToken(){
	return uni.getStorageSync('token')
}

export function setUserInfo(userInfo){
	uni.setStorageSync('USER_INFO',userInfo)
}

export function getUserInfo(){
  return	uni.getStorageSync('USER_INFO')
}

export function setPath(path){
	uni.setStorageSync('path',path)
}

export function getPath(){
	return uni.getStorageSync('path')
}


export function setCart(cart){
	uni.setStorageSync('cart',cart)
}

export function getCart(){
	if(!uni.getStorageSync('cart')) return {}
  return	uni.getStorageSync('cart')
}

export function setOutCart(cart){
	uni.setStorageSync('out_cart',cart)
}

export function getOutCart(){
	if(!uni.getStorageSync('out_cart')) return {}
  return	uni.getStorageSync('out_cart')
}

export function setInCart(cart){
	uni.setStorageSync('in_cart',cart)
}

export function getInCart(){
	if(!uni.getStorageSync('in_cart')) return {}
  return	uni.getStorageSync('in_cart')
}
